import request from '@/utils/request'

// 查询库房日志列表
export function listLog(query) {
  return request({
    url: '/store/log/list',
    method: 'get',
    params: query
  })
}
// 查询库房日志列表2
// export function listLog1(query) {
//   return request({
//     url: '/store/log/list1',
//     method: 'get',
//     params: query
//   })
// }

// 查询库房日志详细
export function getLog(id) {
  return request({
    url: '/store/log/' + id,
    method: 'get'
  })
}

// 新增库房日志
export function addLog(data) {
  return request({
    url: '/store/log',
    method: 'post',
    data: data
  })
}

// 修改库房日志
export function updateLog(data) {
  return request({
    url: '/store/log',
    method: 'put',
    data: data
  })
}

// 删除库房日志
export function delLog(id) {
  return request({
    url: '/store/log/' + id,
    method: 'delete'
  })
}

// 逻辑删除
export function logicDel(id) {
  return request({
    url: '/store/log/' + id,
    method: 'put'
  })
}
